package com.web.common.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class AccessTokenGetJob extends QuartzJobBean {
	
	private RefreshAccessTokenTask accessTokenTask;

	
	public void setAccessTokenTask(RefreshAccessTokenTask accessTokenTask) {
		this.accessTokenTask = accessTokenTask;
	}


	@Override
	protected void executeInternal(JobExecutionContext arg0) throws JobExecutionException {
		accessTokenTask.refreshToken();

	}

}
